//
//  ViewController.m
//  UITabbar
//
//  Created by zhang on 16/1/11.
//  Copyright © 2016年 Zhang. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self addSubView];
}
- (void)addSubView{

    UITabBar *tabbar = [[UITabBar alloc]initWithFrame:CGRectMake(0, 200, 375, 49)];
    tabbar.backgroundColor = [UIColor grayColor];
    UITabBarItem *fir = [[UITabBarItem alloc]initWithTitle:@"1" image:nil selectedImage:nil];
    tabbar.items = @[fir];
    [self.view addSubview:tabbar];
    

}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
